home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / EnterAct Stuff / write your own Drag_on / CodeResHelper.h < prev    next >
Text File  |  1994-12-22  |  1KB  |  37 lines

  1. /* CodeResHelper.h - prototypes for helper functions */
  2.  
  3. /* Resources */
  4. short OpenOrCreateResourceFork(StringPtr fileName);
  5. void DeleteAllExistingRsrcs(long theType, short theNum);
  6. /* Dialogs */
  7. void GetDlogOrigin (short dlogID, Point *where);
  8. Boolean GetAndAlignDialog(short  resID);
  9. void FrameDialogItem(DialogPtr theDP,short theItem);
  10. void SetEText(DialogPtr dPtr, short theItem, StringPtr newStr);
  11. void GetEText(DialogPtr dPtr, short theItem, StringPtr currentStr);
  12. void SetCheck(DialogPtr dPtr, short chkItem, short zeroMeansNoCheck);
  13. void GetCheck(DialogPtr dPtr, short chkItem, Boolean *trueIfChecked);
  14. Handle GetButton(DialogPtr dPtr, short btnItem);
  15. void HiliteDlgControl(DialogPtr dPtr, short btnItem, short state);
  16. /* Pascal strings */
  17. void CopyPStr(Byte *srcStr, Byte *dstStr);
  18. void AppendPStr(Byte *s1, Byte *s2);
  19. Boolean PEqualStrs(Byte *aStr, Byte *bStr);
  20. /* Files, names and locations */
  21. Byte *FullPathNameFromDirectory(long DirID, short vRefNum, Byte *s);
  22. Byte *FullPathNameFromVRefNum(short vRefNum, Byte *s);
  23. short    OpenWorkingDirectoryFromFullName(char *name, short len);
  24. /* Memory allocation */
  25. void InitTempCodeMemory(void);
  26. void *TMalloc(size_t size);
  27. void *Trealloc(void *ptr, size_t size);
  28. void Tfree(void *ptr);
  29. void TFreeAll(void);
  30. void *Fmalloc(size_t size);
  31. void *Frealloc(void *ptr, size_t size);
  32. void Ffree(void *ptr);
  33. void FFreeAll(void);
  34. /* Misc */
  35. void NullOut(char *str, long nBytes);
  36. Boolean TaskWasInterrupted(void);
  37. Boolean CheckInWithCallingApp(void);